package com.thunisoft.netty.custom;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @title NettyCustomServerHandler.java
 * @package com.thunisoft.netty.custom
 * @projectName spring.boot
 * @author yzj
 * @date 2019年10月8日 下午5:47:09
 */
public class NettyCustomServerHandler extends SimpleChannelInboundHandler<CustomMessage> {

	@Override
	protected void channelRead0(ChannelHandlerContext ctx, CustomMessage msg) throws Exception {
		System.out.println("打印服务端消息内容："+msg.toString());
	}

}
